home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXmmmmCCCCoooonnnnvvvveeeerrrrttttUUUUnnnniiiittttssss((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmCCCCoooonnnnvvvveeeerrrrttttUUUUnnnniiiittttssss((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- XXXXmmmmCCCCoooonnnnvvvveeeerrrrttttUUUUnnnniiiittttssss - A function that converts a value in one
- unit type to another unit type
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <Xm/Xm.h>
- iiiinnnntttt XXXXmmmmCCCCoooonnnnvvvveeeerrrrttttUUUUnnnniiiittttssss(
- WWWWiiiiddddggggeeeetttt wwwwiiiiddddggggeeeetttt,
- iiiinnnntttt oooorrrriiiieeeennnnttttaaaattttiiiioooonnnn,
- iiiinnnntttt ffffrrrroooommmm____uuuunnnniiiitttt____ttttyyyyppppeeee,
- iiiinnnntttt ffffrrrroooommmm____vvvvaaaalllluuuueeee,
- iiiinnnntttt ttttoooo____uuuunnnniiiitttt____ttttyyyyppppeeee);
-
- VVVVEEEERRRRSSSSIIIIOOOONNNN
- This page documents Motif 2.1.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- XXXXmmmmCCCCoooonnnnvvvveeeerrrrttttUUUUnnnniiiittttssss converts the value and returns it as the
- return value from the function. For resources of type,
- dimension, or position, you can specify units using the
- syntax described in the XXXXmmmmNNNNuuuunnnniiiittttTTTTyyyyppppeeee resource of the
- XXXXmmmmPPPPrrrriiiimmmmiiiittttiiiivvvveeee reference page.
-
- _w_i_d_g_e_t Specifies the widget for which the data is to be
- converted.
-
- _o_r_i_e_n_t_a_t_i_o_n
- Specifies whether the converter uses the
- horizontal or vertical screen resolution when
- performing the conversions. The
- _o_r_i_e_n_t_a_t_i_o_nparameter can have values of
- XXXXmmmmHHHHOOOORRRRIIIIZZZZOOOONNNNTTTTAAAALLLL or XXXXmmmmVVVVEEEERRRRTTTTIIIICCCCAAAALLLL.
-
- _f_r_o_m__u_n_i_t__t_y_p_e
- Specifies the current unit type of the supplied
- value
-
- _f_r_o_m__v_a_l_u_e
- Specifies the value to be converted
-
- _t_o__u_n_i_t__t_y_p_e
- Converts the value to the unit type specified
-
- The parameters _f_r_o_m__u_n_i_t__t_y_p_e and _t_o__u_n_i_t__t_y_p_e can have the
- following values:
-
- XXXXmmmmPPPPIIIIXXXXEEEELLLLSSSS All values provided to the widget are treated as
- pixel values. This is the default for the
- resource.
-
- XXXXmmmmMMMMIIIILLLLLLLLIIIIMMMMEEEETTTTEEEERRRRSSSS
- All values provided to the widget are treated as
-
-
-
- Page 1 (printed 10/3/02)
-
-
-
-
-
-
- XXXXmmmmCCCCoooonnnnvvvveeeerrrrttttUUUUnnnniiiittttssss((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmCCCCoooonnnnvvvveeeerrrrttttUUUUnnnniiiittttssss((((3333XXXX))))
-
-
-
- millimeter values.
-
- _X_m_1_0_0_T_H__M_I_L_L_I_M_E_T_E_R_S
- All values provided to the widget are treated as
- 1/100 of a millimeter.
-
- XXXXmmmmCCCCEEEENNNNTTTTIIIIMMMMEEEETTTTEEEERRRRSSSS
- All values provided to the widget are treated as
- centimeter values.
-
- XXXXmmmmIIIINNNNCCCCHHHHEEEESSSS All values provided to the widget are treated as
- inch values.
-
- _X_m_1_0_0_0_T_H__I_N_C_H_E_S
- All values provided to the widget are treated as
- 1/1000 of an inch.
-
- XXXXmmmmPPPPOOOOIIIINNNNTTTTSSSS All values provided to the widget are treated as
- point values. A point is a unit used in text
- processing applications and is defined as 1/72 of
- an inch.
-
- _X_m_1_0_0_T_H__P_O_I_N_T_S
- All values provided to the widget are treated as
- 1/100 of a point. A point is a unit typically
- used in text processing applications and is
- defined as 1/72 of an inch.
-
- XXXXmmmmFFFFOOOONNNNTTTT____UUUUNNNNIIIITTTTSSSS
- All values provided to the widget are treated as
- normal font units. A font unit has horizontal and
- vertical components. These are the values of the
- XmScreen resources XXXXmmmmNNNNhhhhoooorrrriiiizzzzoooonnnnttttaaaallllFFFFoooonnnnttttUUUUnnnniiiittttand
- XXXXmmmmNNNNvvvveeeerrrrttttiiiiccccaaaallllFFFFoooonnnnttttUUUUnnnniiiitttt.
-
- _X_m_1_0_0_T_H__F_O_N_T__U_N_I_T_S
- All values provided to the widget are treated as
- 1/100 of a font unit. A font unit has horizontal
- and vertical components. These are the values of
- the XmScreen resources XXXXmmmmNNNNhhhhoooorrrriiiizzzzoooonnnnttttaaaallllFFFFoooonnnnttttUUUUnnnniiiittttand
- XXXXmmmmNNNNvvvveeeerrrrttttiiiiccccaaaallllFFFFoooonnnnttttUUUUnnnniiiitttt.
-
- RRRREEEETTTTUUUURRRRNNNN
- Returns the converted value. If a NULL widget, incorrect
- _o_r_i_e_n_t_a_t_i_o_n, or incorrect _u_n_i_t__t_y_p_eis supplied as parameter
- data, 0 (zero) is returned.
-
- RRRREEEELLLLAAAATTTTEEEEDDDD
- XXXXmmmmPPPPrrrriiiimmmmiiiittttiiiivvvveeee, XXXXmmmmSSSSeeeettttFFFFoooonnnnttttUUUUnnnniiiittttssss(3), and XXXXmmmmSSSSccccrrrreeeeeeeennnn(3).
-
-
-
-
-
-
- Page 2 (printed 10/3/02)
-
-
-
-